package com.snail.model.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * @author cici
 * @description 搜索结果返货的dto
 * @date 2025/8/13 17:17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SearchResultDTO {
    private String index;              // 哪个索引
    private String type;               // 文档里的 type 字段
    private float score;               // 匹配度
    private Map<String, Object> data;  // 具体内容
}
